package com.jams.log.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 日志表
 *
 * @author linxb
 * @date 2020-03-31 10:14:44
 */
@Data
@TableName("sys_log")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "日志表")
public class SysLog extends Model<SysLog> {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    @ApiModelProperty(value = "主键")
    private Long id;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String status;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String title;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String serviceId;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String createBy;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
    /**
     * 远程地址
     */
    @ApiModelProperty(value = "远程地址")
    private String remoteAddr;
    /**
     * 浏览器类型
     */
    @ApiModelProperty(value = "浏览器类型")
    private String userAgent;
    /**
     * 请求路径
     */
    @ApiModelProperty(value = "请求路径")
    private String requestUri;
    /**
     * 方法
     */
    @ApiModelProperty(value = "方法")
    private String method;
    /**
     * 参数
     */
    @ApiModelProperty(value = "参数")
    private String params;
    /**
     * 执行时间
     */
    @ApiModelProperty(value = "执行时间")
    private Long time;
    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;
    /**
     * 异常信息
     */
    @ApiModelProperty(value = "异常信息")
    private String exception;
    /**
     * 所属租户
     */
    @ApiModelProperty(value = "所属租户", hidden = true)
    private Integer tenantId;
}
